<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<header th:fragment="header">
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">鱼收藏</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

                <ul class="nav navbar-nav navbar-right">

                    <li><a href="#">用户：(<span th:text="${session.user.name}"></span>)</a></li>
                    <li class="dropdown">

                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                           aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-cog"
                                                                             aria-hidden="true"></span>&nbsp;设置&nbsp;<span
                                class="caret"></span></a>
                        <ul class="dropdown-menu" style="width: 110px;">
                            <!--<li><a href="#"> <span class="glyphicon glyphicon-user" aria-hidden="true"></span>&nbsp;个人信息</a>-->
                            </li>
                            <!--<li role="separator" class="divider"></li>-->
                            <li><a th:href="@{/login/logout}">
                                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
                                &nbsp;退出</a></li>
                        </ul>
                    </li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
</header>
</body>
</html>